import 'package:chat_app_project/generated/json/base/json_convert_content.dart';
import 'package:chat_app_project/models/res_entity.dart';

ResEntity $ResEntityFromJson(Map<String, dynamic> json) {
	final ResEntity resEntity = ResEntity();
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		resEntity.code = code;
	}
	final dynamic data = jsonConvert.convert<dynamic>(json['data']);
	if (data != null) {
		resEntity.data = data;
	}
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		resEntity.msg = msg;
	}
	final bool? success = jsonConvert.convert<bool>(json['success']);
	if (success != null) {
		resEntity.success = success;
	}
	final int? total = jsonConvert.convert<int>(json['total']);
	if (total != null) {
		resEntity.total = total;
	}
	final dynamic rows = jsonConvert.convert<dynamic>(json['rows']);
	if (rows != null) {
		resEntity.rows = rows;
	}
	return resEntity;
}

Map<String, dynamic> $ResEntityToJson(ResEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['code'] = entity.code;
	data['data'] = entity.data;
	data['msg'] = entity.msg;
	data['success'] = entity.success;
	data['total'] = entity.total;
	data['rows'] = entity.rows;
	return data;
}
